//
//  UITextField+Factory.h
//  即时通讯
//
//  Created by huangtao on 16/7/9.
//  Copyright © 2016年 fish. All rights reserved.
//

#import <UIKit/UIKit.h>

static CGFloat TextFieldVerticalPadding = 10;
static CGFloat TextFieldHorizontalPadding = 10;

@interface UITextField (Factory)

+ (UITextField *)textFieldWithFrame:(CGRect)frame
                           delegate:(id<UITextFieldDelegate>)delegate
                        placeholder:(NSString *)placeholder
                      returnKeyType:(UIReturnKeyType)returnKeyType
                    backgroundImage:(NSString *)imageName
                    clearButtonMode:(UITextFieldViewMode)clearButtonMode;

- (void)addBackGroundCorRadius;
@end
